package com.ler.yrmall.coupon.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ler.yrmall.basic.Form;
import com.ler.yrmall.coupon.entity.CouponHistoryEntity;
import com.ler.yrmall.coupon.vo.CouponHistoryVO;

/**
 * @author Leron
 */
public interface CouponHistoryService extends IService<CouponHistoryEntity> {

    /**
     * 分页
     * @param request
     * @return
     */
    IPage<CouponHistoryVO> find(Form request);

    /**
     * 获取用户领取的数量
     * @param couponId
     * @return
     */
    int getMemberReceiveCount(long couponId);
}

